<?php 

/**
 * Joomla! 1.5 component retweet
 * @version 0.1
 * @author Chris Borkowski 
 * @package com_retweet
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 **/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


?>
<script language="javascript" type="text/javascript">
function tableOrdering( order, dir, task ) {
var form = document.adminForm;
 form.filter_order.value = order;
  form.filter_order_Dir.value = dir;
  document.adminForm.submit( task );
  }
</script>
<form action="<?php echo JFilterOutput::ampReplace($this->action); ?>" method="post" name="adminForm">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php if ($this->params->get('show_limit', 1)): ?>
<td align="right" colspan="4">
<?php
  echo JText::_('Display Num') .'';
  echo $this->pagination->getLimitBox();
  ?>
</td>
<?php endif; ?>
</tr>
<?php if ( $this->params->def( 'show_headings', 1 ) ) : ?>
<tr>
<td width="10" style="text-align:right;" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo JText::_('Num'); ?>
</td>
<td width="90%" height="20" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo JHTML::_('grid.sort', 'retweet', 'title', $this->lists['order_Dir'], $this->lists['order'] ); ?>
</td>
<?php if ( $this->params->get( 'show_hits_cat' ) ) : ?>
 <td width="30" height="20" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>" style="text-align:center;" nowrap="nowrap">
<?php echo JHTML::_('grid.sort', 'Hits', 'hits', $this->lists['order_Dir'], $this->lists['order'] ); ?>
</td>
<?php endif; ?>
</tr>
<?php endif; ?>
<?php foreach ($this->items as $item) : ?>
<tr class="sectiontableentry<?php echo $item->odd + 1; ?>">
<td align="right">
<?php echo $this->pagination->getRowOffset( $item->count ); ?>
</td>
<td height="20">
<?php echo $item->link; ?>
</td>
<?php if ( $this->params->get( 'show_hits_cat' ) ) : ?>
<td align="center">
<?php echo $item->hits; ?>
</td><?php endif; ?>
</tr>
<?php endforeach; ?>
<tr>
<td align="center" colspan="4" class="sectiontablefooter<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo $this->pagination->getPagesLinks(); ?>
</td>
</tr>
<tr>
<td colspan="4" align="right" class="pagecounter">
<?php echo $this->pagination->getPagesCounter(); ?>
</td>
</tr>
</table>
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="" />
</form>